I/f conversion device and photo-detection device

ABSTRACT

An I/F converter  10  includes a first comparator portion  11   1 , a second comparator portion  11   2 , a current mirror circuit  14 , a reference voltage source  15 , an SR-type flip-flop circuit  16 , a buffer amplifier  18 , a first capacitive element C 1 , a second capacitive element C 2 , a switch SW 1 , a switch SW 2 , a switch SW 11 , and a switch SW 21 . The respective operational characteristics of the first comparator portion  11   1  and the second comparator portion  11   2  are identical to each other. The respective capacitance values of the two capacitive elements C 1  and C 2  are equal to each other. The I/F converter  10  is connected at its input end  10   a  to a photodiode PD, such that a current generated in the photodiode PD is inputted to the input end  10   a , allowing a signal at a frequency corresponding to the amplitude of the inputted current to be outputted from the buffer amplifier  18  to the counter portion  19 . Accordingly, provided is an I/F converter and a photodetector which can realize a high input/output related linearity with high accuracy over a wide dynamic range.

TECHNICAL FIELD

The present invention relates to a current-to-frequency (I/F) converter which outputs a signal at a frequency corresponding to the amplitude of a current inputted to the input end, and also relates to a photodetector which includes such an I/F converter and a photosensitive element.

BACKGROUND ART

Photosensitive elements (e.g., photodiodes or photomultipliers) can output a current corresponding in amplitude to the intensity of incident light, thereby detecting the light intensity based on the current value. Such a photosensitive element has a good linearity between the intensity of incident light and the output current value over a wide dynamic range of the intensity of incident light. On the other hand, it is known that the dynamic range of the sensitivity of the human eye to the intensity of light is about six orders of magnitude.

In this context, an A/D converter for inputting the value of a current outputted from the photosensitive element for analog to digital conversion is required to output a digital value of a number of bits corresponding to the intensity of light over such a wide dynamic range. For example, corresponding to the dynamic range of light intensity being six orders of magnitude, the A/D converter is required to output a digital value of 20 bits. However, it is difficult to realize such an A/D converter that outputs a digital value of 20 bits.

To address such a problem, there has been suggested an I/F converter which outputs a signal at a frequency corresponding to the amplitude of inputted current (e.g., see Japanese Patent Application Laid-Open No. 2002-107428). This I/F converter inputs the value of a current outputted from the photosensitive element to output a pulsed signal at a frequency corresponding to the magnitude of the value of the current (i.e., the intensity of light made incident upon the photosensitive element). Accordingly, by counting the number of pulses per unit time in the signal outputted from the I/F converter, it is possible to obtain the light intensity as a digital value over a wide dynamic range.

FIG. 12 is a view illustrating the configuration of a conventional I/F converter disclosed in Japanese Patent Application Laid-Open No. 2002-107428. An I/F converter 40 illustrated in this figure includes a current-to-voltage converting circuit 41, a transistor Tr1, a current mirror circuits 42 and 43, a mirror integrator circuit 44, a comparator circuit 45, and a reference voltage source 46.

The current-to-voltage converting circuit 41, which has an operational amplifier 41 a and a feedback resistive element Rf, inputs the current value outputted from a current value detecting circuit 4 and then converts it into a voltage value corresponding to the current value to output the voltage value. The transistor Tr1 inputs, at its gate terminal, the voltage value outputted from the current-to-voltage converting circuit 41, allowing the current of the value obtained by logarithmically amplifying the voltage value to flow between the source terminal and the drain terminal. The current mirror circuit 42, which has transistors Tr2 and Tr3, amplifies the current outputted from the transistor Tr1 for output. The current mirror circuit 43, which has transistors Tr4 and Tr5, amplifies the current outputted from the current mirror circuit 42 for output.

The mirror integrator circuit 44, which has an operational amplifier 44 a and a feedback capacitive element C, inputs a current outputted from the current mirror circuit 43 to accumulate charges in the capacitive element C corresponding to the input current, and then outputs a voltage value corresponding to the amount of charges accumulated. The comparator circuit 45 compares amplitudes between the voltage value outputted from the mirror integrator circuit 44 and the reference voltage value V_(ref) outputted from the reference voltage source 46 to output a comparison signal indicating the result of the comparison. A switch 34 disposed between the input and output terminals of the operational amplifier 44 a of the mirror integrator circuit 44 inputs the comparison signal that has been outputted from the comparator circuit 45 and passed through a buffer amplifier 33, thereby being opened or closed in accordance with the comparison signal.

In the I/F converter 40, a current inputted to the mirror integrator circuit 44 gradually increases the amount of charges accumulated in the capacitive element C, thereby causing the value of the voltage outputted from the mirror integrator circuit 44 to increase. Then after the value of the voltage outputted from the mirror integrator circuit 44 exceeds the reference voltage value V_(ref), the comparison signal outputted from the comparator circuit 45 is inverted, thereby causing the switch 34 to be closed and the capacitive element C to be discharged. When the capacitive element C is discharged, the comparison signal is inverted again and the switch 34 is opened, thus starting building up charges in the capacitive element C. In this manner, charge and discharge operations repeatedly performed on the capacitive element C will cause the comparison signal outputted from the comparator circuit 45 to be turned into a signal that is representative of the repetition of the charge and discharge operations and at a frequency corresponding to the magnitude of the value of the input current.

The I/F converter 40 includes the transistor Tr1 that has a logarithmic amplification characteristic. This is intended to improve the input and output related linearity between the input current value and the output frequency even when use of a transistor having no logarithmic amplification characteristic would cause such a high output frequency (a large input current value) that cannot ensure a sufficient period of time for discharging the capacitive element C. In other words, the I/F converter 40 is intended to improve the input and output related linearity of the input current value over a wide dynamic range.

DISCLOSURE OF THE INVENTION

However, it is difficult for the conventional I/F converter to realize a high input and output related linearity between the input current value and the output frequency with high accuracy over a wide dynamic range. Accordingly, it is also difficult for a photodetector incorporating such an I/F converter and photosensitive element to realize a high input and output related linearity between the intensity of incident light and the output frequency with high accuracy over a wide dynamic range.

The present invention was developed to address the above-mentioned problems. It is therefore an object of the present invention to provide an I/F converter and a photodetector which can realize a high input and output related linearity with high accuracy over a wide dynamic range.

An I/F converter according to the present invention generates a signal at a frequency corresponding to an amplitude of a current inputted to an input end, and the I/F converter comprises (1) switching means for selectively switching to either one of a first output end and a second output end to output the current inputted to the input end, (2) a first capacitive element connected to the first output end of the switching means to accumulate charge corresponding to inputted current, (3) first discharge means for discharging the charge accumulated in the first capacitive element, (4) a first comparator portion connected at its input terminal to one end of the first capacitive element to compare amplitudes between a voltage at the one end of the first capacitive element and a reference voltage, the first comparator portion outputting from its output terminal a first comparison signal indicating a result of the comparison, (5) a second capacitive element connected to the second output end of the switching means to accumulate charge corresponding to inputted current, (6) second discharge means for discharging the charge accumulated in the second capacitive element, and (7) a second comparator portion connected at its input terminal to one end of the second capacitive element to compare amplitudes between a voltage at the one end of the second capacitive element and a reference voltage, the second comparator portion outputting from its output terminal a second comparison signal indicating a result of the comparison.

When this I/F converter is set so that the switching means allows a current to be outputted to the first output end, the current inputted at the input end flows into the first capacitive element via the switching means, causing charges to be built in the first capacitive element. As the amount of charges accumulated in the first capacitive element increases, the voltage applied to the input terminal of the first comparator portion gradually increases and then grows greater than the reference voltage. Then, the first comparison signal outputted from the output terminal of the first comparator portion is inverted in level. The inversion in level of the first comparison signal will cause the charges built in the first capacitive element to be discharged by the first discharge means, thereby allowing the first comparison signal outputted from the output terminal of the first comparator portion to be inverted in level.

Thereafter, the setting is changed such that the switching means outputs the current to the second output end, thereby allowing the current inputted to the input end to flow into the second capacitive element through the switching means to accumulate the charges in the second capacitive element. As the amount of charges accumulated in the second capacitive element increases, the voltage inputted to the input terminal of the second comparator portion gradually increases and then grows greater than the reference voltage. Then, the second comparison signal outputted from the output terminal of the second comparator portion is inverted in level. The inversion in level of the second comparison signal will cause the charges built in the second capacitive element to be discharged by the second discharge means, thereby allowing the second comparison signal outputted from the output terminal of the second comparator portion to be inverted in level.

The operations repeated as described above cause the signals outputted from the first comparator portion or the second comparator portion of the I/F converter to form a pulsed signal, the frequency of which corresponds to the amplitude of the current inputted to the input end.

To perform the above-mentioned operations, the I/F converter may preferably further include timing control means to control the operation of each of the switching means, the first discharge means, and the second discharge means in accordance with the first comparison signal and the second comparison signal.

It is preferable that the I/F converter according to the present invention further includes (1) a third capacitive element connected at one end to the first output end of the switching means as well as to the input terminal of the first comparator portion to accumulate charge corresponding to inputted current, (2) third discharge means for discharging the charge accumulated in the third capacitive element, (3) a fourth capacitive element connected at one end to the second output end of the switching means as well as to the input terminal of the second comparator portion to accumulate charge corresponding to inputted current, (4) fourth discharge means for discharging the charge accumulated in the fourth capacitive element, (5) first connection means for selectively setting to either one of the states with the other end of the first capacitive element connected to a ground potential, with the other end of the first capacitive element connected to the output terminal of the first comparator portion, and with the other end of the first capacitive element opened, (6) second connection means for selectively setting to either one of the states with the other end of the second capacitive element connected to the ground potential, with the other end of the second capacitive element connected to the output terminal of the second comparator portion, and with the other end of the second capacitive element opened, (7) third connection means for selectively setting to either one of the states with the other end of the third capacitive element connected to the ground potential, with the other end of the third capacitive element connected to the output terminal of the first comparator portion, and with the other end of the third capacitive element opened, and (8) fourth connection means for selectively setting to either one of the states with the other end of the fourth capacitive element connected to the ground potential, with the other end of the fourth capacitive element connected to the output terminal of the second comparator portion, and with the other end of the fourth capacitive element opened. It is also preferable that each of the first comparator portion and the second comparator portion is selectively settable to either one of a comparator mode or an amplifier mode. Here, the comparator mode is a mode of operation for comparing amplitudes between the voltage inputted to the input terminal and the reference voltage to output a comparison signal indicating the result of the comparison from the output terminal. On the other hand, the amplifier mode is a mode of operation in which when the feedback capacitive element is connected between the input terminal and the output terminal, the voltage value corresponding to the amount of charges accumulated in the feedback capacitive element is outputted from the output terminal.

As is in this case, the third and fourth capacitive elements, the discharge means for discharging the charges in each capacitive element, and the connection means for setting the connection state of each capacitive element may be further included in addition to the first and second capacitive elements, this arrangement allows for accumulating charges in the first capacitive element, the second capacitive element, the third capacitive element, and the fourth capacitive element repeatedly in that order. This in turn causes the signals outputted from the first comparator portion and the second comparator portion to form a pulsed signal, the frequency of which corresponds to the amplitude of the current inputted to the input end.

In addition, to perform the above-mentioned operations, the I/F converter may preferably further include timing control means, the timing control means provides control in accordance with the first comparison signal and the second comparison signal, and controls an operation of each of the switching means, the first discharge means, the second discharge means, the third discharge means, the fourth discharge means, the first connection means, the second connection means, the third connection means, the fourth connection means, the first comparator portion, and the second comparator portion.

The I/F converter according to the present invention may further preferably include a reference voltage source for supplying the reference voltage to each of the first comparator portion and the second comparator portion, an SR-type flip-flop circuit for inputting the first comparison signal and the second comparison signal, a current mirror circuit for amplifying a current inputted to the input end for output to the switching means, a first overvoltage protection circuit connected to the input terminal of the first comparator portion to reset a potential at the input terminal, and a second overvoltage protection circuit connected to the input terminal of the second comparator portion to reset a potential at the input terminal.

A photodetector according to the present invention includes (1) a photosensitive element for outputting a current of an amplitude corresponding to an intensity of incident light, and (2) an I/F converter according to the present invention described above for inputting a current outputted from the photosensitive element to generate a signal at a frequency corresponding to an amplitude of the current. It is also preferable to further include a counter portion for counting the number of pulses per unit time in the signal generated in the I/F converter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a view illustrating the configuration of an I/F converter 10 and a photodetector 1 according to a first embodiment;

FIG. 2 is an explanatory timing chart illustrating the operation of the I/F converter 10 according to the first embodiment;

FIG. 3 is a graph showing the operational characteristic of the I/F converter 10 and the photodetector 1 according to the first embodiment;

FIG. 4 is a view illustrating the configuration of an I/F converter 20 and a photodetector 2 according to a second embodiment;

FIG. 5 is a view illustrating an exemplary circuit of each of a first comparator portion 21 ₁ and a second comparator portion 21 ₂;

FIG. 6 is a view illustrating an exemplary circuit of each of a first overvoltage protection circuit 22 ₁ and a second overvoltage protection circuit 22 ₂;

FIG. 7 is an explanatory timing chart illustrating the operation of the I/F converter 20 according to the second embodiment;

FIGS. 8A to 8C are first explanatory views illustrating how each switch is opened or closed at each point in time and how each capacitive element is connected during operation of the I/F converter 20 according to the second embodiment;

FIGS. 9A to 9C are second explanatory views illustrating how each switch is opened or closed at each point in time and how each capacitive element is connected during operation of the I/F converter 20 according to the second embodiment;

FIGS. 10A to 10C are third explanatory views illustrating how each switch is opened or closed at each point in time and how each capacitive element is connected during operation of the I/F converter 20 according to the second embodiment;

FIGS. 11A and 11B are views illustrating the operational characteristics of the I/F converter 10 of the first embodiment and those of the I/F converter 20 of the second embodiment for comparison purposes; and

FIG. 12 is a view illustrating the configuration of a conventional I/F converter.

BEST MODES FOR CARRYING OUT THE INVENTION

Now, the present invention will be explained below in more detail with reference to the accompanying drawings in accordance with the embodiments. Throughout the drawings, the same components are indicated with the same symbols and will not be explained repeatedly.

First Embodiment

First, a description will be made for an I/F converter and a photodetector according to the first embodiment of the present invention.

FIG. 1 is a view illustrating the configuration of an I/F converter 10 and a photodetector 1 according to the first embodiment. The photodetector 1 illustrated in this figure includes a photodiode PD for outputting a current of an amplitude corresponding to the intensity of light made incident thereon, the I/F converter 10 for inputting a current outputted from the photodiode PD to generate a signal, and a counter portion 19 for counting the number of pulses per unit time in the signal generated by the I/F converter 10.

The I/F converter 10 includes a first comparator portion 11 ₁, a second comparator portion 11 ₂, a current mirror circuit 14, a reference voltage source 15, an SR-type flip-flop circuit 16, a buffer amplifier 18, a first capacitive element C₁, a second capacitive element C₂, a switch SW₁, a switch SW₂, a switch SW₁₁, and a switch SW₂₁.

The respective operational characteristics of the first comparator portion 11 ₁ and the second comparator portion 11 ₂ are identical to each other. The respective capacitance values of the two capacitive elements C₁ and C₂ are equal to each other. The I/F converter 10 is connected at its input end 10 a to the photodiode PD, such that a current generated in the photodiode PD is inputted to the input end 10 a, allowing a signal at a frequency corresponding to the amplitude of the inputted current to be outputted from the buffer amplifier 18 to the counter portion 19.

The current mirror circuit 14 amplifies the current inputted at the input end 10 a for outputting to the switch SW₁ and the switch SW₂. The switch SW₁ is disposed between the output end of the current mirror circuit 14 and the inverting input terminal of the first comparator portion 11 ₁. The switch SW₂ is disposed between the output end of the current mirror circuit 14 and the inverting input terminal of the second comparator portion 11 ₂. The switch SW₁ and the switch SW₂ serve as switching means for selectively switching to either one of a first output end (a connection point to the inverting input terminal of the first comparator portion 11 ₁) and a second output end (a connection point to the inverting input terminal of the second comparator portion 11 ₂) to output the current inputted to the input end 10 a and having passed through the current mirror circuit 14.

The first capacitive element C₁ is connected at one end to the output end of the current mirror circuit 14 via the switch SW₁ as well as to the inverting input terminal of the first comparator portion 11 ₁. The other end of the first capacitive element C₁ is connected to the ground. The first capacitive element C₁ can accumulate charges corresponding to the current inputted. The switch SW₁ is disposed between the one end of the first capacitive element C₁ and the ground potential, serving as first discharge means for discharging the charges accumulated in the first capacitive element C₁.

The first comparator portion 11 ₁ inputs, at its inverting input terminal, a voltage V₁ at the one end of the first capacitive element C₁, and also inputs, at its non-inverting input terminal, a reference voltage V_(ref) outputted from the reference voltage source 15, to compare amplitudes between the voltage V₁ and the reference voltage V_(ref), and then outputs a first comparison signal S₁ indicating the result of the comparison from the output terminal. The first comparison signal S₁ is at a high level when the voltage V₁ is less than the reference voltage V_(ref), while being at a low level when the voltage V₁ is greater than the reference voltage V_(ref).

The second capacitive element C₂ is connected at one end to the output end of the current mirror circuit 14 via the switch SW₂ as well as to the inverting input terminal of the second comparator portion 11 ₂. The other end of the second capacitive element C₂ is connected to the ground. The second capacitive element C₂ can accumulate charges corresponding to the current inputted. The switch SW₂₁ is disposed between the one end of the second capacitive element C₂ and the ground potential, serving as second discharge means for discharging the charges accumulated in the second capacitive element C₂.

The second comparator portion 11 ₂ inputs, at its inverting input terminal, a voltage V₂ at the one end of the second capacitive element C₂, and also inputs, at its non-inverting input terminal, the reference voltage V_(ref) outputted from the reference voltage source 15, to compare amplitudes between the voltage V₂ and the reference voltage V_(ref), and then outputs a second comparison signal S₂ indicating the result of the comparison from the output terminal. The second comparison signal S₂ is at a high level when the voltage V₂ is less than the reference voltage V_(ref), while being at a low level when the voltage V₂ is greater than the reference voltage V_(ref).

The reference voltage source 15 generates a constant reference voltage V_(ref), which is supplied to the respective non-inverting input terminals of the first comparator portion 11 ₁ and the second comparator portion 11 ₂. The SR-type flip-flop circuit 16 inputs, at the S input terminal, the first comparison signal S₁ outputted from the first comparator portion 11 ₁, and also inputs, at the R input terminal, the second comparison signal S₂ outputted from the second comparator portion 11 ₂, and then outputs output signals, which change as the respective levels of the first comparison signal S₁ and the second comparison signal S₂ vary, from the Q output terminal and the QB output terminal, respectively. The buffer amplifier 18 amplifies the signal outputted from the Q output terminal of the SR-type flip-flop circuit 16 for output to the counter portion 19. The counter portion 19 counts the number of pulses per unit time in the signal outputted from the buffer amplifier 18 to output the count as a digital value.

The SR-type flip-flop circuit 16 serves also as timing control means for controlling the operation of each switch in accordance with the first comparison signal S₁ and the second comparison signal S₂. That is, each of the switch SW₁ and the switch SW₂₁ is closed when the value of the signal outputted from the QB output terminal of the SR-type flip-flop circuit 16 is at the high level, whereas being opened at the low level. On the other hand, each of the switch SW₂ and the switch SW₁₁ is closed when the value of the signal outputted from the Q output terminal of the SR-type flip-flop circuit 16 is at the high level, whereas being opened at the low level.

A description will now be made for the operation of the I/F converter 10 and the photodetector 1 according to the first embodiment. FIG. 2 is an explanatory timing chart illustrating the operation of the I/F converter 10 according to the first embodiment.

The current outputted from the photodiode PD for which light has been made incident is inputted to the input end 10 a of the I/F converter 10 and amplified by the current mirror circuit 14, being outputted from the current mirror circuit 14 to the switches SW₁ and SW₂.

Before time t₁, the Q output of the SR-type flip-flop circuit 16 is at the low level with the QB output at the high level, such that each of the switches SW₁ and SW₂₁ is closed while each of the switches SW₂ and SW₁₁ is opened. The current outputted from the current mirror circuit 14 flows into the first capacitive element C₁ through the switch SW₁, allowing the charges to be accumulated in the first capacitive element C₁. As the amount of charges accumulated in the first capacitive element C₁ increases, the voltage V₁ inputted to the inverting input terminal of the first comparator portion 11 ₁ gradually increases and then grows greater than the reference voltage V_(ref) applied to the non-inverting input terminal at time t₁. At time t₁, the first comparison signal S₁ outputted from the output terminal of the first comparator portion 11 ₁ changes from a high level to a low level.

The first comparison signal S₁ thus changes to the low level at time t₁, and this will cause the Q output of the SR-type flip-flop circuit 16 to change into the high level and the QB output to change to the low level. This causes each of the switches SW₁ and SW₂₁ to be opened, and each of the switches SW₂ and SW₁₁ to be closed. The opening and closing operations of each switch allow the charges accumulated in the first capacitive element C₁ to be discharged, and the first comparison signal S1 outputted from the output terminal of the first comparator portion 11 ₁ to return to the high level.

After time t₁, the current outputted from the current mirror circuit 14 flows into the second capacitive element C₂ through the switch SW₂, allowing the charges to be built up in the second capacitive element C₂. As the amount of charges accumulated in the second capacitive element C₂ increases, the voltage V₂ inputted to the inverting input terminal of the second comparator portion 11 ₂ gradually increases and then grows greater than the reference voltage V_(ref) applied to the non-inverting input terminal at time t₂. At time t₂, the second comparison signal S2 outputted from the output terminal of the second comparator portion 11 ₂ changes from a high level to a low level.

The second comparison signal S₂ thus changes to the low level at time t₂, and this will cause the Q output of the SR-type flip-flop circuit 16 to change into the low level and the QB output to change to the high level. This causes each of the switches SW₁ and SW₂₁ to be closed, and each of the switches SW₂ and SW₁₁ to be opened. The opening and closing operations of each switch allow the charges accumulated in the second capacitive element C₂ to be discharged, and the second comparison signal S₂ outputted from the output terminal of the second comparator portion 11 ₂ to return to the high level.

The operation is repeated in this manner, thereby causing the Q output signal of the SR-type flip-flop circuit 16 to form a pulsed signal, which is inputted to the counter portion 19 via the buffer amplifier 18. Then, the counter portion 19 counts the number of pulses per unit time in the signal outputted from the Q output terminal of the SR-type flip-flop circuit 16, and the value of counts (i.e., the frequency) is outputted as a digital value. The higher the rate of building up charges in each of the first capacitive element C₁ and the second capacitive element C₂, i.e., the larger the current outputted from the current mirror circuit 14, the higher the frequency obtained in this manner.

FIG. 3 is a graph showing the operational characteristic of the I/F converter 10 and the photodetector 1 according to the first embodiment. In this graph, the horizontal axis represents the intensity of light made incident upon the photodiode PD of the photodetector 1 or the value of current inputted to the input end 10 a of the I/F converter 10. The vertical axis represents the frequency measured by the counter portion 19.

This figure also shows the operational characteristic of the I/F converter configured as shown in FIG. 12, as a comparative example, for comparison to that of the first embodiment. As illustrated in this figure, the comparative example shows that the input/output related linearity is degraded in a region where a larger amount of light is made incident upon the photodiode PD (i.e., in a region with a larger current value). In contrast to this, this embodiment exhibits a good input/output related linearity even in the region where a larger amount of light is made incident upon the photodiode PD (i.e., in a region with a larger current value). As such, the I/F converter 10 and the photodetector 1 according to this embodiment can realize a high input/output related linearity with high accuracy over a wide dynamic range.

Second Embodiment

Now, a description will be made for an I/F converter and a photodetector according to a second embodiment of the present invention. FIG. 4 is a view illustrating the configuration of an I/F converter 20 and a photodetector 2 according to the second embodiment. The photodetector 2 illustrated in this figure includes a photodiode PD for outputting a current of an amplitude corresponding to the intensity of light made incident thereon, the I/F converter 20 for inputting a current outputted from the photodiode PD to generate a signal, and a counter portion 29 for counting the number of pulses per unit time in the signal generated by the I/F converter 20.

The I/F converter 20 includes a first comparator portion 21 ₁, a second comparator portion 21 ₂, a first overvoltage protection circuit 22 ₁, a second overvoltage protection circuit 22 ₂, a first one-shot circuit 23 ₁, a second one-shot circuit 23 ₂, a current mirror circuit 24, a reference voltage source 25, an SR-type flip-flop circuit 26, a timing control portion 27, a buffer amplifier 28, a first capacitive element C₁, a second capacitive element C₂, a third capacitive element C₃, a fourth capacitive element C₄, a switch SW₁, a switch SW₂, switches SW₁₁ to SW₁₃, switches SW₂₁ to SW₂₃, switches SW₃₁ to SW₃₃, and switches SW₄₁ to SW₄₃.

The respective operational characteristics of the first comparator portion 21 ₁ and the second comparator portion 21 ₂ are identical to each other. The respective capacitance values of the four capacitive elements C₁ to C₄ are equal to each other. The I/F converter 20 is connected at its input end 20 a to the photodiode PD, such that a current generated in the photodiode PD is inputted to the input end 20 a, allowing a signal at a frequency corresponding to the amplitude of the inputted current to be outputted from the buffer amplifier 28 to the counter portion 29.

The current mirror circuit 24 amplifies the current inputted at the input end 20 a for output to the switch SW₁ and the switch SW₂. The switch SW₁ is disposed between the output end of the current mirror circuit 24 and the inverting input terminal of the first comparator portion 21 ₁. The switch SW₂ is disposed between the output end of the current mirror circuit 24 and the inverting input terminal of the second comparator portion 21 ₂. The switch SW₁ and the switch SW₂ serve as switching means for selectively switching to either one of a first output end (a connection point to the inverting input terminal of the first comparator portion 21 ₁) and a second output end (a connection point to the inverting input terminal of the second comparator portion 21 ₂) to output the current inputted to the input end 20 a and having passed through the current mirror circuit 24.

Each of the first capacitive element C₁ and the third capacitive element C₃ is connected at one end to the output end of the current mirror circuit 24 via the switch SW₁ as well as to the inverting input terminal of the first comparator portion 21 ₁. Each of the first capacitive element C₁ and the third capacitive element C₃ can accumulate charges corresponding to the current inputted.

The switch SW₁₁ is disposed between the one end and the other end of the first capacitive element C₁, serving as first discharge means for discharging the charges accumulated in the first capacitive element C₁. The switch SW₁₂ is disposed between the other end of the first capacitive element C₁ and the ground potential. The switch SW₁₃ is disposed between the other end of the first capacitive element C₁ and the output terminal of the first comparator portion 21 ₁. The switches SW₁₂ and SW₁₃ serve as first connection means for selectively setting to either one of the states with the other end of the first capacitive element C1 connected to the ground potential, with the other end of the first capacitive element C₁ connected to the output terminal of the first comparator portion 21 ₁, and with the other end of the first capacitive element C, opened.

The switch SW₃₁ is disposed between the one end and the other end of the third capacitive element C₃, serving as third discharge means for discharging the charges accumulated in the third capacitive element C₃. The switch SW₃₂ is disposed between the other end of the third capacitive element C₃ and the ground potential. The switch SW₃₃ is disposed between the other end of the third capacitive element C₃ and the output terminal of the first comparator portion 21 ₁. The switches SW₃₂ and SW₃₃ serve as third connection means for selectively setting to either one of the states with the other end of the third capacitive element C₃ connected to the ground potential, with the other end of the third capacitive element C₃ connected to the output terminal of the first comparator portion 21 ₁, and with the other end of the third capacitive element C₃ opened.

The first comparator portion 21 ₁ inputs, at its inverting input terminal, a voltage V₁ at the one end of each of the first capacitive element C₁ and the third capacitive element C₃, and also inputs, at its non-inverting input terminal, a reference voltage V_(ref) outputted from the reference voltage source 25, to compare amplitudes between the voltage V1 and the reference voltage V_(ref), and then outputs a first comparison signal S₁ indicating the result of the comparison from the output terminal. The first comparison signal S₁ is at the high level when the voltage V₁ is less than the reference voltage V_(ref), while being at the low level when the voltage V₁ is greater than the reference voltage V_(ref).

Each of the second capacitive element C₂ and the fourth capacitive element C₄ is connected at one end to the output end of the current mirror circuit 24 via the switch SW₂ as well as to the inverting input terminal of the second comparator portion 21 ₂. Each of the second capacitive element C₂ and the fourth capacitive element C₄ can accumulate charges corresponding to the current inputted.

The switch SW₂₁ is disposed between the one end and the other end of the second capacitive element C₂, serving as second discharge means for discharging the charges accumulated in the second capacitive element C₂. The switch SW₂₂ is disposed between the other end of the second capacitive element C₂ and the ground potential. The switch SW₂₃ is disposed between the other end of the second capacitive element C₂ and the output terminal of the second comparator portion 21 ₂. The switches SW₂₂ and SW₂₃ serve as second connection means for selectively setting to either one of the states with the other end of the second capacitive element C₂ connected to the ground potential, with the other end of the second capacitive element C₂ connected to the output terminal of the second comparator portion 21 ₂, and with the other end of the second capacitive element C₂ opened.

The switch SW₄₁ is disposed between the one end and the other end of the fourth capacitive element C₄, serving as fourth discharge means for discharging the charges accumulated in the fourth capacitive element C₄. The switch SW₄₂ is disposed between the other end of the fourth capacitive element C₄ and the ground potential. The switch SW₄₃ is disposed between the other end of the fourth capacitive element C₄ and the output terminal of the second comparator portion 21 ₂. The switches SW₄₂ and SW₄₃ serve as fourth connection means for selectively setting to either one of the states with the other end of the fourth capacitive element C₄ connected to the ground potential, with the other end of the fourth capacitive element C₄ connected to the output terminal of the second comparator portion 21 ₂, and with the other end of the fourth capacitive element C₄ opened.

The second comparator portion 21 ₂ inputs, at its inverting input terminal, a voltage V₂ at the one end of each of the second capacitive element C₂ and the fourth capacitive element C₄, and also inputs, at its non-inverting input terminal, a reference voltage V_(ref) outputted from the reference voltage source 25, to compare amplitudes between the voltage V₂ and the reference voltage V_(ref), and then outputs a second comparison signal S₂ indicating the result of the comparison from the output terminal. The second comparison signal S₂ is at the high level when the voltage V₂ is less than the reference voltage V_(ref), while being at the low level when the voltage V₂ is greater than the reference voltage V_(ref).

The first overvoltage protection circuit 22 ₁ is connected to the inverting input terminal of the first comparator portion 21 ₁ to reset the potential at the inverting input terminal. Likewise, the second overvoltage protection circuit 22 ₂ is connected to the inverting input terminal of the second comparator portion 21 ₂ to reset the potential at the inverting input terminal. Each of the first comparator portion 21 ₁ and the second comparator portion 21 ₂ would not properly operate in a steady state with the voltage at the inverting input terminal being higher than that at the non-inverting input terminal. Such a situation likely occurs when the power is actuated. In this context, the first overvoltage protection circuit 22 ₁ and the second overvoltage protection circuit 22 ₂ will reset the potential at the respective inverting input terminals of the first comparator portion 21 ₁ and the second comparator portion 21 ₂, thereby enabling a proper operation.

The first one-shot circuit 23 ₁ is disposed between the output terminal of the first comparator portion 21 ₁ and the S input terminal of the SR-type flip-flop circuit 26 so as to stabilize changes in level of the first comparison signal S₁ outputted from the first comparator portion 21 ₁. The second one-shot circuit 23 ₂ is disposed between the output terminal of the second comparator portion 21 ₂ and the R input terminal of the SR-type flip-flop circuit 26 so as to stabilize changes in level of the second comparison signal S₂ outputted from the second comparator portion 21 ₂. Each of the first one-shot circuit 23 ₁ and the second one-shot circuit 23 ₂ stabilizes the operation of the SR-type flip-flop circuit 26.

The reference voltage source 25 generates a constant reference voltage V_(ref), which is inputted to the respective non-inverting input terminals of the first comparator portion 21 ₁ and the second comparator portion 21 ₂. The SR-type flip-flop circuit 26 inputs, at the S input terminal, the first comparison signal S₁ outputted from the first comparator portion 21 ₁ and having passed through the first one-shot circuit 23 ₁, and also inputs, at the R input terminal, the second comparison signal S₂ outputted from the second comparator portion 21 ₂ and having passed through the second one-shot circuit 23 ₂, and then outputs output signals, which change as the respective levels of the first comparison signal S₁ and the second comparison signal S₂ vary, from the Q output terminal and the QB output terminal, respectively. The buffer amplifier 28 amplifies the signal outputted from the Q output terminal of the SR-type flip-flop circuit 26 for output to the counter portion 29. The counter portion 29 counts the number of pulses per unit time in the signal outputted from the buffer amplifier 28 to output the count as a digital value.

The SR-type flip-flop circuit 26 and the timing control portion 27 serve as timing control means for controlling the operation of each switch in accordance with the first comparison signal S₁ and the second comparison signal S₂. That is, the timing control portion 27 generates and outputs a control signal to control the operation of each switch in accordance with the respective output signals from the Q output terminal and the QB output terminal of the SR-type flip-flop circuit 26. Then, each switch is closed when the value of the control signal outputted and provided from the timing control portion 27 is at the high level, whereas being opened at the low level.

FIG. 5 is a view illustrating an exemplary circuit of each of the first comparator portion 21 ₁ and the second comparator portion 21 ₂. A comparator portion 21 illustrated in this figure is representative of the first comparator portion 21 ₁ and the second comparator portion 21 ₂. The comparator portion 21 includes p-channel CMOS transistors T₁₁ to T₁₅, n-channel CMOS transistors T₂₁ to T₂₅, a phase compensation capacitive element C, and a resistive element R, which are connected as illustrated.

The inverting input terminal P_(M), which is connected to the gate terminal of the transistor T₁₄, inputs the voltage V₁ or V₂. The non-inverting input terminal P_(P), which is connected to the gate terminal of the transistor T₁₅, inputs the reference voltage V_(ref). The output terminal P_(O), which is connected to the drain terminal of each of the transistors T₁₃, T₂₁, and T₂₄, outputs the first comparison signal S₁ or the second comparison signal S2. The bias input terminal P_(B), which is connected to the gate terminal of each of the transistors T₁₁ to T₁₃, sets the bias voltage for operating the comparator portion 21. The control terminal P_(C), which is connected to the gate terminal of each of the transistors T₂₁ and T₂₅, switches between the modes of operation of the comparator portion 21 (i.e., the comparator mode and the amplifier mode) by connecting or disconnecting the phase compensation capacitive element C. The supply terminal V_(dd) is for inputting a supply voltage.

FIG. 6 is a view illustrating an exemplary circuit of each of the first overvoltage protection circuit 22 ₁ and the second overvoltage protection circuit 22 ₂. An overvoltage protection circuit 22 illustrated in this figure is representative of the first overvoltage protection circuit 22 ₁ and the second overvoltage protection circuit 22 ₂. The overvoltage protection circuit 22 includes p-channel CMOS transistors T₃₁ to T₃₆, n-channel CMOS transistors T₄₁ to T₅₀, and Schmitt triggers U₁ and U₂, which are connected as illustrated.

The bias input terminal P_(B), which is connected to the gate terminal of each of the transistors T₃₁ to T₃₃ and the drain terminal of the transistor T₃₁, sets the bias voltage for operating the overvoltage protection circuit 22. The terminal P_(O), which is connected to the gate terminal of the transistor T₄₃ and the drain terminal of the transistor T₅₀, is connected to the output terminal of the first comparator portion 21 and the second comparator portion 21 ₂.

The bias input terminal P_(B) biases the circuit. The terminal P_(O) serves as an input and output terminal. When having reached a preset voltage or no less than the preset voltage, the terminal P_(O) is instantaneously forced to the ground potential due to the transistor T₅₀. When the terminal P_(O) is at the ground potential (or no greater than the ground potential), the circuit of FIG. 6 is stabilized. The stabilized terminal P_(O) is in a high-impedance state, having no effects on the circuit to which the terminal P_(O) is connected. The supply terminal V_(dd) is for inputting a supply voltage.

A description will now be made to the operation of the I/F converter 20 and the photodetector 2 according to the second embodiment. FIG. 7 is an explanatory timing chart illustrating the operation of the I/F converter 20 according to the second embodiment. In this figure, φ₁ denotes a control signal which controls the opening and closing operation of the switch SW₁, φ_(ij) denotes a control signal which controls the opening and closing operation of the switch SW_(ij) (i=1 to 4, j=1 to 3), φ_(C1) denotes a control signal which is inputted to the control terminal P_(C) of the first comparator portion 21 ₁ to switch between the modes of operation of the first comparator portion 21 ₁, and φ_(C2) denotes a control signal which is inputted to the control terminal P_(C) of the second comparator portion 21 ₂ to switch between the modes of operation of the second comparator portion 21 ₂. Although not illustrated, a control signal φ₂ for controlling the opening and closing operation of the switch SW₂ is a level inverted signal of the control signal φ₁.

These control signals φ₁, φ₂, φ_(ij), φ_(C1), and φ_(C2) are outputted from the timing control portion 27. FIGS. 8A to 10C are explanatory views illustrating how each switch is opened or closed at each point in time and how each capacitive element is connected during operation of the I/F converter 20 according to the second embodiment.

The current outputted from the photodiode PD for which light has been made incident is inputted to the input end 20 a of the I/F converter 20 and amplified by the current mirror circuit 24, being outputted from the current mirror circuit 24 to the switches SW₁ and SW₂.

FIG. 8A shows how each switch is opened or closed and how each capacitive element is connected at time t₀. At time t₀, the Q output of the SR-type flip-flop circuit 26 is at the low level with the QB output at the high level. Additionally, the control signal φ₁ is at the low level, the switch SW₁ is opened, the control signal φ₂ is at the high level, and the switch SW₂ is closed. As a result, the current outputted from the current mirror circuit 24 will not flow toward the first comparator portion 21 ₁ but will flow toward the second comparator portion 21 ₂.

At time t₀, the control signal φ₁₁ is at the low level, the switch SW₁, is opened, the control signal φ₁₂ is at the low level, the switch SW₁₂ is opened, the control signal φ₁₃ is at the high level, and the switch SW₁₃ is closed. As a result, the first capacitive element C₁ is connected as a feedback capacitive element between the inverting input terminal and the output terminal of the first comparator portion 21 ₁. The control signal φ₃₁ is at the low level, the switch SW₃₁ is opened, the control signal φ₃₂ is at the high level, the switch SW₃₂ is closed, the control signal φ₃₃ is at the low level, and the switch SW₃₃ is opened. As a result, the third capacitive element C₃ is connected between the inverting input terminal of the first comparator portion 21 ₁ and the ground potential to be charged at the reference voltage V_(ref). The control signal φ_(C1) is at the high level and the first comparator portion 21 ₁ is in the amplifier mode. The first comparison signal S₁ outputted from the output terminal of the first comparator portion 21 ₁ is at the low level.

At time t₀, the control signal φ₂₁ is at the high level, the switch SW₂, is closed, the control signal φ₂₂ is at the low level, the switch SW₂₂ is opened, the control signal φ₂₃ is at the low level, and the switch SW₂₃ is opened. As a result, the second capacitive element C₂ is short-circuited at the ends being disconnected from the output terminal of the second comparator portion 21 ₂. The control signal φ₄₁ is at the low level, the switch SW₄₁ is opened, the control signal φ₄₂ is at the high level, the switch SW₄₂ is closed, the control signal φ₄₃ is at the low level, and the switch SW₄₃ is opened. As a result, the fourth capacitive element C₄ is connected between the inverting input terminal of the second comparator portion 21 ₂ and the ground potential, and accumulates the charges corresponding to the current having flown therein. Here, the voltage at the inverting input terminal of the second comparator portion 21 ₂ is below the reference voltage V_(ref). The control signal φ_(C2) is at the low level and the second comparator portion 21 ₂ is in the comparator mode. The second comparison signal S₂ outputted from the output terminal of the second comparator portion 21 ₂ is at the high level.

After time t₀, the current outputted from the current mirror circuit 24 and then flowing toward the second comparator portion 21 ₂ side causes the amount of charges accumulated in the fourth capacitive element C₄ to gradually increase, thereby allowing the voltage at the inverting input terminal of the second comparator portion 21 ₂ to gradually increase as well. Then, at time t_(l), the voltage at the inverting input terminal of the second comparator portion 21 ₂ reaches the reference voltage V_(ref), and the second comparison signal S₂ outputted from the output terminal of the second comparator portion 21 ₂ changes to the low level, the Q output of the SR-type flip-flop circuit 26 to the high level, and the QB output to the low level.

FIG. 8B shows how each switch is opened or closed and how each capacitive element is connected after time t₀. At time t₁, the control signal φ₁₃ changes into the low level and the switch SW₁₃ is opened, and subsequently, the first capacitive element C₁ retains the charges that have been accumulated. The control signal φ₂₁ changes into the low level and the switch SW₂₁ is opened, and subsequently, the second capacitive element C₂ is released from the state with the ends short-circuited. The control signal φ_(C2) changes into the high level and the second comparator portion 21 ₂ is turned into the amplifier mode.

FIG. 8C shows how each switch is opened or closed and how each capacitive element is connected after time t₂ at which a certain time has elapsed from time t₁. At time t₂, the control signal φ₃₁ changes into the high level and the switch SW₃₁ is closed, and subsequently, the third capacitive element C₃ is short-circuited at the ends to be discharged. The control signal φ_(C1) changes into the low level and the first comparator portion 21 ₁ is turned to the comparator mode. The first comparison signal S₁ outputted from the output terminal of the first comparator portion 21 ₁ changes into the high level.

FIG. 9A shows how each switch is opened or closed and how each capacitive element is connected after time t₃ at which a certain time has elapsed from time t₂. At time t₃, the control signal φ₃₂ changes into the low level and the switch SW₃₂ is opened, and subsequently, the third capacitive element C₃ is disconnected, with the ends thereof remaining short-circuited, from the output terminal of the first comparator portion 21 ₁.

FIG. 9B shows how each switch is opened or closed and how each capacitive element is connected after time t₄ at which a certain time has elapsed from time t₃. At time t₄, the control signal φ₁₂ changes into the high level and the switch SW₁₂ is closed, and subsequently, the first capacitive element C₁ is connected between the inverting input terminal of the first comparator portion 21 ₁ and the ground potential. Additionally, the voltage at the inverting input terminal of the first comparator portion 21 ₁ takes a value corresponding to the amount of charges retained in the first capacitive element C₁ at time t₁.

FIG. 9C shows how each switch is opened or closed and how each capacitive element is connected after time t₅ at which a certain time has elapsed from time 4. At time t₅, the control signal φ₁ changes into the high level and the switch SW₁ is closed, and the control signal 42 changes into the low level and the switch SW₂ is opened, thereby stopping the accumulation of charges in the fourth capacitive element C₄ that has been carried out until then. After time t₅, the voltage at the inverting input terminal of the second comparator portion 21 ₂ is above the reference voltage V_(ref). In addition, after time t₅, the current outputted from the current mirror circuit 24 flows into the first comparator portion 21 ₁ side, thereby causing the first capacitive element C₁ to accumulate the charges therein corresponding to the flowed in current.

FIG. 10A shows how each switch is opened or closed and how each capacitive element is connected after time t₆ at which a certain time has elapsed from time t₅. At time t₆, the control signal φ₂₃ changes into the high level and the switch SW₂₃ is closed, and subsequently, the second capacitive element C₂ is connected between the inverting input terminal and the output terminal of the second comparator portion 21 ₂. Additionally, after time t₆, the voltage at the inverting input terminal of the second comparator portion 21 ₂ takes the reference voltage V_(ref). The charge (hereinafter referred to as the excess charge) exceeding the charge corresponding to the reference voltage V_(ref)in the charge which have been accumulated in the fourth capacitive element C₄ before time t₆ moves to the second capacitive element C₂ serving as the feedback capacitive element. The movement of the charge requires time corresponding to the response speed of the second comparator portion 21 ₂.

After time t₆, the current outputted from the current mirror circuit 24 and then flowing toward the first comparator portion 21 ₁ side causes the amount of charges accumulated in the first capacitive element C₁ to gradually increase, thereby allowing the voltage at the inverting input terminal of the first comparator portion 21 ₁ to gradually increase as well. Then, at time t₇, the voltage at the inverting input terminal of the first comparison signal S₁ reaches the reference voltage V_(ref), and the first comparison signal S₁ outputted from the output terminal of the first comparator portion 21 ₁ changes to the low level, the Q output of the SR-type flip-flop circuit 26 to the low level, and the QB output to the high level.

FIG. 10B shows how each switch is opened or closed and how each capacitive element is connected after time t₇. At time t₇, the control signal φ₃₁ changes into the low level and the switch SW₃₁ is opened, and subsequently, the third capacitive element C₃ is released from the state with the ends short-circuited. The control signal φ₂₃ changes into the low level and the switch SW₂₃ is opened, and subsequently, the second capacitive element C₂ retains the charges that have been accumulated. The control signal φ_(C1) changes into the high level and the first comparator portion 21 ₁ is turned into the amplifier mode.

FIG. 10C shows how each switch is opened or closed and how each capacitive element is connected after time t₈ at which a certain time has elapsed from time t₇. At time t₈, the control signal φ₄₁ changes into the high level and the switch SW₄, is closed, and subsequently, the fourth capacitive element C₄ is short-circuited at the ends to be discharged. The control signal φ_(C2) changes into the low level and the second comparator portion 21 ₂ is turned to the comparator mode. The second comparison signal S₂ outputted from the output terminal of the second comparator portion 21 ₂ changes into the high level.

Thereafter, the operation is carried out in the same manner. Here, charges are accumulated in the fourth capacitive element C₄ from time t₀ to time t₅. Thereafter, charges are accumulated in the first capacitive element C₁, the second capacitive element C₂, the third capacitive element C₃, and the fourth capacitive element C₄ repeatedly in that order. The operations repeated as described above cause the SR-type flip-flop circuit 26 to form a pulsed Q output signal, which is inputted to the counter portion 29 through the buffer amplifier 28. Then, the counter portion 29 counts the number of pulses per unit time in the signal outputted from the Q output terminal of the SR-type flip-flop circuit 26, and the value of counts (i.e., the frequency) is outputted as a digital value. The higher the rate of building up charges in each capacitive element, i.e., the larger the current outputted from the current mirror circuit 24, the higher the frequency obtained in this manner.

For example, when the charge accumulation is switched from the fourth capacitive element C₄ to the first capacitive element C₁, the excess charge in the charges that have been accumulated in the fourth capacitive element C₄ moves to the second capacitive element C₂. Then, after the charge accumulation is switched from the first capacitive element C₁ to the second capacitive element C₂, charges are additionally built up in the second capacitive element C₂ in addition to the excess charge that has been accumulated therein. In this manner, when the capacitive elements are switched therebetween to build up charges, the excess charge is not discarded but moved to and built up in the other capacitive element. Accordingly, the I/F converter 20 and the photodetector 2 according to this embodiment can realize a high input/output related linearity with high accuracy over a wide dynamic range.

FIGS. 11A and 11B are views illustrating the operational characteristics of the I/F converter 10 of the first embodiment and those of the I/F converter 20 of the second embodiment for comparison purposes. FIG. 11A is a graph showing the relationship between the input current value and the output frequency, FIG. 11B being a graph showing the relationship between the input current value and the linearity. The linearity is indicated with the amount of change in output frequency assumed to one over the range of the input current values from 1 nA to 10 nA. As illustrated in this figure, in either of the first and second embodiments, a high input/output related linearity is realized with high accuracy over a wide dynamic range. When compared with the first embodiment, the second embodiment has realized a high input/output related linearity with high accuracy over a wider dynamic range.

INDUSTRIAL APPLICABILITY

As described above in detail, the I/F converter and the photodetector according to the present invention is available as one which can realize a high input/output related linearity with high accuracy over a wide dynamic range. 

1. An I/F converter for generating a signal at a frequency corresponding to an amplitude of a current inputted to an input end, the I/F converter comprising switching means for selectively switching to either one of a first output end and a second output end to output the current inputted to the input end, a first capacitive element connected to the first output end of the switching means to accumulate charge corresponding to inputted current, first discharge means for discharging the charge accumulated in the first capacitive element, a first comparator portion connected at its input terminal to one end of the first capacitive element to compare amplitudes between a voltage at the one end of the first capacitive element and a reference voltage, the first comparator portion outputting from its output terminal a first comparison signal indicating a result of the comparison, a second capacitive element connected to the second output end of the switching means to accumulate charge corresponding to inputted current, second discharge means for discharging the charge accumulated in the second capacitive element, and a second comparator portion connected at its input terminal to one end of the second capacitive element to compare amplitudes between a voltage at the one end of the second capacitive element and a reference voltage, the second comparator portion outputting from its output terminal a second comparison signal indicating a result of the comparison.
 2. The I/F converter according to claim 1, further comprising timing control means for controlling an operation of each of the switching means, the first discharge means, and the second discharge means in accordance with the first comparison signal and the second comparison signal.
 3. The I/F converter according to claim 1, further comprising a third capacitive element connected at one end to the first output end of the switching means as well as to the input terminal of the first comparator portion to accumulate charge corresponding to inputted current, third discharge means for discharging the charge accumulated in the third capacitive element, a fourth capacitive element connected at one end to the second output end of the switching means as well as to the input terminal of the second comparator portion to accumulate charge corresponding to inputted current, fourth discharge means for discharging the charge accumulated in the fourth capacitive element, first connection means for selectively setting to either one of the states with the other end of the first capacitive element connected to a ground potential, with the other end of the first capacitive element connected to the output terminal of the first comparator portion, and with the other end of the first capacitive element opened, second connection means for selectively setting to either one of the states with the other end of the second capacitive element connected to the ground potential, with the other end of the second capacitive element connected to the output terminal of the second comparator portion, and with the other end of the second capacitive element opened, third connection means for selectively setting to either one of the states with the other end of the third capacitive element connected to the ground potential, with the other end of the third capacitive element connected to the output terminal of the first comparator portion, and with the other end of the third capacitive element opened, and fourth connection means for selectively setting to either one of the states with the other end of the fourth capacitive element connected to the ground potential, with the other end of the fourth capacitive element connected to the output terminal of the second comparator portion, and with the other end of the fourth capacitive element opened, wherein each of the first comparator portion and the second comparator portion can be selectively set to either one of a comparator mode or an amplifier mode.
 4. The I/F converter according to claim 3, further comprising timing control means for providing control in accordance with the first comparison signal and the second comparison signal, wherein the timing control means controls an operation of each of the switching means, the first discharge means, the second discharge means, the third discharge means, the fourth discharge means, the first connection means, the second connection means, the third connection means, the fourth connection means, the first comparator portion, and the second comparator portion.
 5. The I/F converter according to claim 1, further comprising a reference voltage source for supplying the reference voltage to each of the first comparator portion and the second comparator portion.
 6. The I/F converter according to claim 1, further comprising an SR-type flip-flop circuit for inputting the first comparison signal and the second comparison signal.
 7. The I/F converter according to claim 1, further comprising a current mirror circuit for amplifying a current inputted to the input end for output to the switching means.
 8. The I/F converter according to claim 1, further comprising a first overvoltage protection circuit connected to the input terminal of the first comparator portion to reset a potential at the input terminal, and a second overvoltage protection circuit connected to the input terminal of the second comparator portion to reset a potential at the input terminal.
 9. A photodetector, comprising a photosensitive element for outputting a current corresponding in amplitude to an intensity of light made incident, and an I/F converter according to any one of claims 1 to 8 for inputting a current outputted from the photosensitive element to generate a signal at a frequency corresponding to an amplitude of the current.
 10. The photodetector according to claim 9, further comprising a counter portion for counting the number of pulses per unit time in the signal generated in the I/F converter. 